<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<script type="text/javascript">

	function checkForm() {
		var name = document.getElementById("name").value;
		var description = document.getElementById("description").value;
		var purpose = document.getElementById("purpose").value;
		var enabled = document.getElementById("enabled").value;
				
		if (name == 0) {
			alert("请输入名称！");
			return false;
		}
		if (description == 0) {
			alert("请输入描述！");
			return false;
		}
		if (purpose == 0) {
			alert("请输入评价用途！");
			return false;
		}
		if (enabled == 0) {
			alert("请输入是否有效！");
			return false;
		}
	}
</script>

<style type="text/css">
<!--
.STYLE1 {
	font-size: 12px
}

.STYLE3 {
	color: #707070;
	font-size: 12px;
}

.STYLE5 {
	color: #0a6e0c;
	font-size: 12px;
}

body {
	margin-top: 0px;
	margin-bottom: 0px;
}

.STYLE7 {
	font-size: 12
}
-->
</style>
<html:form action="criteria.do?method=updateSave" method="post">
	<html:hidden property="id" value="${criteria.id}" />
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td height="30">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
					<td style="padding-right: 10px;">
					<div align="right"></div>
					</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="1"
				bgcolor="#c9c9c9">
				<tr>
					<td width="70%" height="22" bgcolor="#FFFFFF"><strong><span
						class="STYLE1">修改评教标准模块</span></strong></td>
			  </tr>
				<tr>
					<td bgcolor="#FFFFFF">
					<table width="700" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td width="133" align="right">模块名称：</td>
						  <td width="567"><html:text property="name"
								value="${criteria.name}" /><font color="red">${nameError
							}</font></td>
					  </tr>
						<tr>
							<td align="right">模块描述：</td>
							<td><html:text property="description"
								value="${criteria.description}" /><font color="red">${descriptionError
							}</font></td>
						</tr>
						<tr>
							<td align="right">评价用途：</td>
							<td><html:select property="purpose" value="${criteria.purpose}">
								<html:option value="0">请选择</html:option>
								<html:option value="课程质量管理">课程质量管理</html:option>
								<html:option value="学生质量管理">学生质量管理</html:option>
								<html:option value="行政工作质量管理">行政工作质量管理</html:option>
								<html:option value="后勤服务质量管理">后勤服务质量管理</html:option>
							</html:select> <font color="red">${purposeError }</font></td>
						</tr>
			            <tr>
			              <td align="right">是否有效：</td>
			              <td>
			              
			              <html:select property="enabled" >
								<html:option value="0">请选择</html:option>
								<html:option value="1">是</html:option>
								<html:option value="2">否</html:option>
			              </html:select>
			              
			              <font color="red">${enabledError }</font></td>
			            </tr>						
						<tr>
							<td align="center">&nbsp;</td>
							<td><html:submit value="确认修改" /> &nbsp;&nbsp;&nbsp; <html:reset
								value="取 消" /></td>
						</tr>
					</table>					</td>
				</tr>
			</table>
		  </td>
		</tr>
		<tr>
			<td height="35">&nbsp;</td>
		</tr>
	</table>
</html:form>
